
import { withRouter } from 'react-router';
import { Component } from 'refast';
import logic from './logic';
import './PageSpxx.less';

class PageSpxx extends Component {

  constructor(props) {
    super(props, logic);
  }

  shouldComponentUpdate(nextProps, nextState) {
    const thisProps = this.props || {},
      thisState = this.state || {};
    if (Object.keys(thisProps).length !== Object.keys(nextProps).length ||
      Object.keys(thisState).length !== Object.keys(nextState).length) {
      return true;
    }

    for (const key in nextProps) {
      if (thisProps[key] !== nextProps[key]) {
        return true;
      }
    }

    for (const key in nextState) {
      if (thisState[key] !== nextState[key]) {
        return true;
      }
    }
    return false;
  }

  render() {
    return (
      <div className="page-spxx">
        page spxx
      </div>
    );
  }
}

export default withRouter(PageSpxx);
